package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class AvgCollegeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AvgCollegeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSchoolcollegeidIsNull() {
            addCriterion("schoolCollegeId is null");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidIsNotNull() {
            addCriterion("schoolCollegeId is not null");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidEqualTo(String value) {
            addCriterion("schoolCollegeId =", value, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidNotEqualTo(String value) {
            addCriterion("schoolCollegeId <>", value, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidGreaterThan(String value) {
            addCriterion("schoolCollegeId >", value, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidGreaterThanOrEqualTo(String value) {
            addCriterion("schoolCollegeId >=", value, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidLessThan(String value) {
            addCriterion("schoolCollegeId <", value, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidLessThanOrEqualTo(String value) {
            addCriterion("schoolCollegeId <=", value, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidLike(String value) {
            addCriterion("schoolCollegeId like", value, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidNotLike(String value) {
            addCriterion("schoolCollegeId not like", value, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidIn(List<String> values) {
            addCriterion("schoolCollegeId in", values, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidNotIn(List<String> values) {
            addCriterion("schoolCollegeId not in", values, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidBetween(String value1, String value2) {
            addCriterion("schoolCollegeId between", value1, value2, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andSchoolcollegeidNotBetween(String value1, String value2) {
            addCriterion("schoolCollegeId not between", value1, value2, "schoolcollegeid");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreIsNull() {
            addCriterion("twoIndexScore is null");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreIsNotNull() {
            addCriterion("twoIndexScore is not null");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreEqualTo(String value) {
            addCriterion("twoIndexScore =", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreNotEqualTo(String value) {
            addCriterion("twoIndexScore <>", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreGreaterThan(String value) {
            addCriterion("twoIndexScore >", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreGreaterThanOrEqualTo(String value) {
            addCriterion("twoIndexScore >=", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreLessThan(String value) {
            addCriterion("twoIndexScore <", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreLessThanOrEqualTo(String value) {
            addCriterion("twoIndexScore <=", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreLike(String value) {
            addCriterion("twoIndexScore like", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreNotLike(String value) {
            addCriterion("twoIndexScore not like", value, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreIn(List<String> values) {
            addCriterion("twoIndexScore in", values, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreNotIn(List<String> values) {
            addCriterion("twoIndexScore not in", values, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreBetween(String value1, String value2) {
            addCriterion("twoIndexScore between", value1, value2, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andTwoindexscoreNotBetween(String value1, String value2) {
            addCriterion("twoIndexScore not between", value1, value2, "twoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreIsNull() {
            addCriterion("stuTwoIndexScore is null");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreIsNotNull() {
            addCriterion("stuTwoIndexScore is not null");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreEqualTo(String value) {
            addCriterion("stuTwoIndexScore =", value, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreNotEqualTo(String value) {
            addCriterion("stuTwoIndexScore <>", value, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreGreaterThan(String value) {
            addCriterion("stuTwoIndexScore >", value, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreGreaterThanOrEqualTo(String value) {
            addCriterion("stuTwoIndexScore >=", value, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreLessThan(String value) {
            addCriterion("stuTwoIndexScore <", value, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreLessThanOrEqualTo(String value) {
            addCriterion("stuTwoIndexScore <=", value, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreLike(String value) {
            addCriterion("stuTwoIndexScore like", value, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreNotLike(String value) {
            addCriterion("stuTwoIndexScore not like", value, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreIn(List<String> values) {
            addCriterion("stuTwoIndexScore in", values, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreNotIn(List<String> values) {
            addCriterion("stuTwoIndexScore not in", values, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreBetween(String value1, String value2) {
            addCriterion("stuTwoIndexScore between", value1, value2, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andStutwoindexscoreNotBetween(String value1, String value2) {
            addCriterion("stuTwoIndexScore not between", value1, value2, "stutwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreIsNull() {
            addCriterion("collTwoIndexScore is null");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreIsNotNull() {
            addCriterion("collTwoIndexScore is not null");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreEqualTo(String value) {
            addCriterion("collTwoIndexScore =", value, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreNotEqualTo(String value) {
            addCriterion("collTwoIndexScore <>", value, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreGreaterThan(String value) {
            addCriterion("collTwoIndexScore >", value, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreGreaterThanOrEqualTo(String value) {
            addCriterion("collTwoIndexScore >=", value, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreLessThan(String value) {
            addCriterion("collTwoIndexScore <", value, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreLessThanOrEqualTo(String value) {
            addCriterion("collTwoIndexScore <=", value, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreLike(String value) {
            addCriterion("collTwoIndexScore like", value, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreNotLike(String value) {
            addCriterion("collTwoIndexScore not like", value, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreIn(List<String> values) {
            addCriterion("collTwoIndexScore in", values, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreNotIn(List<String> values) {
            addCriterion("collTwoIndexScore not in", values, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreBetween(String value1, String value2) {
            addCriterion("collTwoIndexScore between", value1, value2, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andColltwoindexscoreNotBetween(String value1, String value2) {
            addCriterion("collTwoIndexScore not between", value1, value2, "colltwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreIsNull() {
            addCriterion("supTwoIndexScore is null");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreIsNotNull() {
            addCriterion("supTwoIndexScore is not null");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreEqualTo(String value) {
            addCriterion("supTwoIndexScore =", value, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreNotEqualTo(String value) {
            addCriterion("supTwoIndexScore <>", value, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreGreaterThan(String value) {
            addCriterion("supTwoIndexScore >", value, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreGreaterThanOrEqualTo(String value) {
            addCriterion("supTwoIndexScore >=", value, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreLessThan(String value) {
            addCriterion("supTwoIndexScore <", value, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreLessThanOrEqualTo(String value) {
            addCriterion("supTwoIndexScore <=", value, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreLike(String value) {
            addCriterion("supTwoIndexScore like", value, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreNotLike(String value) {
            addCriterion("supTwoIndexScore not like", value, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreIn(List<String> values) {
            addCriterion("supTwoIndexScore in", values, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreNotIn(List<String> values) {
            addCriterion("supTwoIndexScore not in", values, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreBetween(String value1, String value2) {
            addCriterion("supTwoIndexScore between", value1, value2, "suptwoindexscore");
            return (Criteria) this;
        }

        public Criteria andSuptwoindexscoreNotBetween(String value1, String value2) {
            addCriterion("supTwoIndexScore not between", value1, value2, "suptwoindexscore");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}